/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const logAnalysisRouter = {
  path: '/logAnalysis',
  component: Layout,
  redirect: '/logAnalysis/eventlog',
  name: 'logAnalysis',
  permission: '数据分析',
  meta: {
    title: '数据分析',
    icon: 'chart',
    permission: '数据分析',
    // requiresAuth: true,
  },
  children: [
    {
      path: 'eventLog',
      name: 'eventLog',
      permission: '事件日志',
      component: () => import('@/views/logAnalysis/eventLog'),
      meta: { 
        title: '事件日志', 
        icon: 'dian',
        permission: '事件日志',
      }
    },
    {
      path: 'safetyAnalysis',
      name: 'safetyAnalysis',
      permission: '安全分析',
      component: () => import('@/views/logAnalysis/safetyAnalysis'),
      meta: { 
        title: '安全分析', 
        icon: 'dian',
        permission: '安全分析',
      }
    },
    {
      path: 'virusDetection',
      name: 'virusDetection',
      permission: '病毒分析',
      component: () => import('@/views/logAnalysis/virusDetection'),
      meta: { 
        title: '病毒分析', 
        icon: 'dian',
        permission: '病毒分析',
      }
    },
    {
      path: 'resourceAnalysis',
      name: 'resourceAnalysis',
      permission: '资源分析',
      component: () => import('@/views/logAnalysis/resourceAnalysis'),
      meta: { 
        title: '资源分析', 
        icon: 'dian',
        permission: '资源分析'
      }
    },
    // {
    //   path: 'accelerateDomainName',
    //   name: 'accelerateDomainName',
    //   component: () => import('@/views/logAnalysis/accelerateDomainName'),
    //   meta: { title: '加速域名', icon: 'dian' },
    // },
    {
      path: 'networkServices',
      name: 'networkServices',
      permission: '网络业务(数据分析)',
      component: () => import('@/views/logAnalysis/networkServices'),
      meta: { 
        title: '网络业务', 
        icon: 'dian',
        permission: '网络业务(数据分析)',
      }
    },
    {
      path: 'baselineVerification',
      name: 'baselineVerification',
      permission: '基线核查(数据分析)',
      component: () => import('@/views/logAnalysis/baselineVerification'),
      meta: { 
        title: '基线核查', 
        icon: 'dian',
        permission: '基线核查(数据分析)',
      }
    },
    {
      path: 'hardwareAssets',
      name: 'hardwareAssets',
      permission: '硬件资产',
      component: () => import('@/views/logAnalysis/hardwareAssets'),
      meta: { 
        title: '硬件资产', 
        icon: 'dian', 
        requiresAuth: true, 
        permission: '硬件资产',
      }
    },
    {
      path: 'softwareUsage',
      name: 'softwareUsage',
      permission: '软件使用',
      component: () => import('@/views/logAnalysis/softwareUsage'),
      meta: { title: '软件使用',
        icon: 'dian',
        requiresAuth: true,
        noCache: false,
        keepAlive: true,
        permission: '软件使用',
      }
    },
    {
      path: 'installingSoftware',
      name: 'installingSoftware',
      permission: '安装软件',
      component: () => import('@/views/logAnalysis/installingSoftware'),
      meta: { 
        title: '安装软件', 
        icon: 'dian', 
        requiresAuth: true, 
        permission: '安装软件',
      }
    },
    // {
    //   path: 'campusStatus',
    //   name: 'campusStatus',
    //   component: () => import('@/views/logAnalysis/campusStatus'),
    //   meta: { 
    //     title: '校区状态', 
    //     icon: 'dian', 
    //     requiresAuth: true, 
    //     // permission: '100000', 
    //     roles: ['boss', 'root', 'guest']
    //   }
    // },
    {
      path: 'assetStatus',
      name: 'assetStatus',
      permission: '资产状态',
      component: () => import('@/views/logAnalysis/assetStatus'),
      meta: { 
        title: '资产状态', 
        icon: 'dian', 
        requiresAuth: true, 
        permission: '资产状态',
      }
    },
    {
      path: 'accessLog',
      name: 'accessLog',
      permission: '远程桌面(数据分析)',
      component: () => import('@/views/logAnalysis/accessLog'),
      meta: { title: '远程桌面', icon: 'dian', permission: '远程桌面(数据分析)' },
    },
    {
      path: 'sharedServer',
      name: 'sharedServer',
      permission: '文件共享(数据分析)',
      component: () => import('@/views/logAnalysis/sharedServer'),
      meta: { title: '文件共享', icon: 'dian', permission: '文件共享(数据分析)' },
    },
    {
      path: 'systemLog',
      name: 'systemLog',
      permission: '系统日志',
      component: () => import('@/views/logAnalysis/systemLog'),
      meta: { 
        title: '系统日志', 
        icon: 'dian',
        permission: '系统日志',
      }
    }
  ]
}

export default logAnalysisRouter
